import type { CSSProperties } from 'vue';

export interface BtnResult {
  text: string; // 按钮文字
  type?: JSX.IntrinsicElements['button']['type'];
  disabled?: JSX.IntrinsicElements['button']['disabled']; // 是否禁用
  openType?: JSX.IntrinsicElements['button']['openType'];
  customStyle?: CSSProperties;
  customClass?: string;
  icon?: string; // 按钮图标
  clickFn?: Fn; // 点击方法
}

export interface CardBottomBtnsOptions {
  styles?: CSSProperties;
  position?: CSSProperties['position'];
  placeholder?: boolean
  reset?: BtnResult;
  submit?: BtnResult;
  custom?: BtnResult;
}